:root {
	--secondary: #8b5cf6;
	--dark: #1e293b;
	--light: #f8fafc;
	--danger: #ef4444;
	--success: #10b981;
	--shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Inter', sans-serif;
	background: #f5f7fa;
	color: var(--dark);
}

.message-container {
	max-width: 600px;
	margin: 0 auto;
	padding: 20px;
}

.message-header {
	padding: var(--gap);
	border-bottom: 1px solid #e2e8f0;
}

.message-header h1 {
	font-size: 24px;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: var(--gap);
}

.message-list {
	display: flex;
	flex-direction: column;
	gap: var(--gap);
	padding: var(--gap);
}

.message-item {
	background: white;
	border-radius: 0.8rem;
	padding: var(--gap);
	box-shadow: var(--shadow);
	display: flex;
	align-items: flex-start;
	gap: var(--gap);
	position: relative;
	transition: transform 0.3s, box-shadow 0.3s;
}

.message-item:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.message-item.unread {
	border-left: 4px solid var(--primary);
}

.message-icon {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #e0e7ff;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--primary);
	flex-shrink: 0;
}

.message-content {
	flex: 1;
}

.message-title {
	font-weight: 600;
	margin-bottom: 5px;
	display: flex;
	justify-content: space-between;
}

.message-time {
	font-size: 12px;
	color: #94a3b8;
}

.message-text {
	font-size: 13px;
	color: #64748b;
	margin-bottom: 10px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.message-actions {
	display: flex;
	gap: var(--gap);
	margin-top: var(--gap);
}

.action-btn {
	border: none;
	background: none;
	color: #94a3b8;
	font-size: 12px;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 5px;
	transition: color 0.3s;
}

.action-btn:hover {
	color: var(--primary);
}

.action-modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s;
	z-index: 100;
}

.action-modal.active {
	opacity: 1;
	visibility: visible;
}

.modal-content {
	background: white;
	border-radius: var(--com-border-radius);
	width: 90%;
	max-width: 400px;
	padding: 20px;
	position: relative;
	transform: translateY(20px);
	transition: transform 0.3s;
}

.action-modal.active .modal-content {
	transform: translateY(0);
}

.modal-close {
	position: absolute;
	top: calc(var(--gap) * 2);
	right: calc(var(--gap) * 2);
	border: none;
	background: none;
	font-size: 20px;
	color: #94a3b8;
	cursor: pointer;
}

.modal-actions {
	display: flex;
	flex-direction: column;
	gap: var(--gap);
	margin-top: calc(var(--gap) * 3);
}

.modal-btn {
	padding: var(--gap);
	border-radius: var(--com-border-radius);
	border: none;
	display: flex;
	align-items: center;
	gap: var(--gap);
	font-size: var(--font-size-primary);
	cursor: pointer;
	transition: background 0.3s;
}

.modal-btn i {
	width: 20px;
	text-align: center;
}

.mark-read {
	background: #e0e7ff;
	color: var(--primary);
}

.mark-unread {
	background: #f1f5f9;
	color: var(--dark);
}

.delete {
	background: #fee2e2;
	color: var(--danger);
}
